package com.eastcom.collection.script

import com.eastcom.collection.config.FtpTaskConfig
import com.eastcom.collection.provider.SpringContextProvider;

import java.sql.PreparedStatement
import java.sql.SQLException
import java.sql.Timestamp
import java.util.concurrent.ConcurrentLinkedQueue

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.dao.DataAccessException
import org.springframework.jdbc.core.support.AbstractLobCreatingPreparedStatementCallback
import org.springframework.jdbc.support.lob.LobCreator
import org.springframework.jdbc.support.lob.OracleLobHandler
import org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor
import org.apache.commons.logging.Log
import org.apache.commons.logging.LogFactory

import com.eastcom.collection.provider.*
import com.eastcom.collection.config.FtpTaskConfig;
import com.eastcom.collection.tools.db.DbEngine
import com.eastcom.collection.tools.file.JaxbUtil;

class SimpleTaskStoreDirector {
	int adc= 0
//	static final String cron = "0/4 * * * * ?"
	static final String name = "SimpleTaskStoreDirector"
	static final String[] domainBeanConfigFile = ["dao_config.xml"]
	static boolean cached    = true
	private static Log logger = LogFactory.getLog(SimpleTaskStoreDirector.class)
	private String taskType = "FTP"
	private String sql = "insert into NHM_PM_UNIT_COLLECT_TASK(TASKID,TASKTYPE,TASKINFO,TIMESTAMP) values(?,?,?,?)"
	public boolean initJob(String jobId){
		println "hhhhhhhhhhhhhdsfsdfsdfsddddddfffffffff " 
	}

	public boolean doJob(String jobId){
		println adc++   
		println "hhhhhhhhhhhhhdfgfffgf  "+jobId+this
	}

}
